package com.hlhj.carview.adapter

import android.widget.ImageView
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.BaseViewHolder
import com.hlhj.carview.LoadtNet
import com.hlhj.carview.R
import com.hlhj.carview.bean.GiverListBean

class GiverListAdp(private val datas:ArrayList<GiverListBean.Data>):BaseQuickAdapter<GiverListBean.Data,BaseViewHolder>(R.layout.company_item,datas){
    override fun convert(helper: BaseViewHolder?, item: GiverListBean.Data?) {
        helper?.setText(R.id.itemName,item?.name)
        helper?.getView<ImageView>(R.id.itemImg)?.LoadtNet(item?.thumb?:"")
        helper?.setText(R.id.itemDes,item?.des)

    }
}